<div id="photoFull">
  <div id="photoFullTitle">
  <div class="photoNavigation">
    <a href="javascript:$.fancybox.prev()">&lt;&lt;</a> $1$ <?php echo T_('of')?> $2$
    <a href="javascript:$.fancybox.next()">&gt;&gt;</a></div>
  <span class="photoName"><?php echo $photo->Name; ?></span>
  <div class="inline-rating">
    <ul class="star-rating small-star">
      <li class="current-rating" style="width:<?php echo $rate ?>%;">
        <?php echo T_('Currently').' '.$photo->AverageRating ?>/5<?php echo T_('Stars')?>
      </li>
      <?php
      for ($i = 1; $i<=5; $i++) {
        echo '<li>';
        if ($isRated) {
          echo '<span class="star'.$i.'"></span>';
        } else {
          $starTitle = $i." ".T_ngettext("star out of", "stars out of", $i)." 5";
          echo '<a href="'.WebRoot.'controllers/rating.php?idPhoto='.$photo->idPhoto.'&amp;rating='.$i.'" title="'.$starTitle.'" class="star'.$i.'">'.$i.'</a>';
        }
        echo '</li>';
      }
      ?>
    </ul>
    <div class="rating-text">(<?php echo $photo->AverageRating; ?>, <?php echo T_('rated').' '.$photo->RatingsCount; ?>x)</div>
  </div>
  <div class="clear"></div>
</div>
  <div class="photoDescription"><?php echo ($photo->Description == null) ? T_('- no description -') : $photo->Description; ?></div>
<div class="title_parameter">
  <table>
<?php
foreach($photo->Parameters as $param) {

    $value = $param->Value;
    $unit = ($param->Parameter->Unit != null) ? $param->Parameter->Unit->Unit : '';
    
    echo '<tr><td>'.exifInfo::ParamToText($param->Parameter->Parameter).'</td><td>'.
         exifInfo::ValueToText($param->Parameter->Parameter, $param->Value).
         $unit.'</td></tr>';
 
  }
  ?>
  </table>
</div>
<?php if ($photo->Album->AllowComments) { ?>
<div class="title_comments">
<form action="<?php echo WebRoot; ?>controllers/addComment.php" method="post">
  <div class="comment_input">
    <!--<textarea name="comment" rows="3" cols="40"></textarea>-->
    <input type="text" placeholder="<?php echo T_('Leave a comment...'); ?>" name="comment" />
    <input type="hidden" name="idPhoto" value="<?php echo $photo->idPhoto; ?>" />
    <input type="submit" value="<?php echo T_('send'); ?>" />
  </div>
</form>



<?php
if ($photo->Comments != null)
    foreach ($photo->Comments as $comment) {
?>
  <div class="comment">
    <div class="comment_avatar">
      <a href="<?php echo WebRoot ?>profile.php?id=<?php echo $comment->User->idUser ?>">
        <img src="<?php echo WebRoot.$comment->User->AvatarUNC ?>" alt="<?php echo $comment->User->UserName ?>" />
      </a>
    </div>
    <div class="comment_text">
      <a href="<?php echo WebRoot ?>profile.php?id=<?php echo $comment->User->idUser ?>">
        <?php echo $comment->User->UserName ?>
      </a>
      <span class="comment_date">
         - <?php echo $comment->InsertionDate->format($dateFormat)?>
      </span>
      <p><?php echo $comment->Text ?></p>
    </div>
  </div>
<?php
   }
?>  
</div><div class="clear"></div>
<?php } ?>

</div>